package com.yx.learn.dao;

import java.util.List;

import com.yx.learn.domain.Authority;
import com.yx.learn.domain.UserAuthority;

public interface UserAuthorityDao {

	//通过用户编号获取用户所有权限
	public List<Authority> findUserAuthorityByNo(String employNo) throws Exception;
	//通过用户编号获取用户菜单级权限
	public List<Authority> findUserAuthorityOfMenuByNo(String employNo) throws Exception;
	
	public List<UserAuthority> getUserAuhtorities() throws Exception;
	
	public UserAuthority findUserAuthority(int uid, int aid) throws Exception;
	
	public List<Integer> getUserAuthorityUID(int uid) throws Exception;

	public void saveUserAuthority(UserAuthority userAuthority) throws Exception;

	public void deleteUserAuthority(UserAuthority userAuthority) throws Exception;

	public UserAuthority findUserAuthorityById(int uaid) throws Exception;
	
	public List<Authority> getAuthorityByUid(int uid) throws Exception;
	
}
